﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Model
{
    public class User : ActiveEntity
    {
        public string Email { get; set; }

        [DataType(DataType.Password)]
        public string Password { get; set; }

        [DataType(DataType.Password)]
        public string ConfirmPassword { get; set; }

        public Profile Profile { get; set; }

        [ScaffoldColumn(false)]
        public Role Role { get; set; }
    }

    public class Profile
    {
        public string Fullname { get; set; }

        public string Phone { get; set; }

        public string Address { get; set; }

        [ScaffoldColumn(false)]
        public string Image { get; set; }

        public string DoB { get; set; }

        public bool Gender { get; set; }
    }

    public enum Role
    {
        User,
        ShopUser,
        Administrator,
        Employee
    }
}
